package com.ahcloud.edas.gatewaylog.biz.infrastructure.log;

import com.ahcloud.edas.gatewaylog.biz.domain.log.dto.GatewayRequestLogDTO;

/**
 * @program: ahcloud-operatelog
 * @description:
 * @author: YuKai Fan
 * @create: 2024/5/26 20:53
 **/
public interface LogCollector<L extends GatewayRequestLogDTO> extends AutoCloseable {

    /**
     * 开启收集器
     */
    void start();

    /**
     * 收集日志
     * @param log
     */
    void collect(L log);
}
